import { http } from '@/utils/request'
import { data } from './home-mock'

export const featchData = (params: any) => {
  http('post', '/home/list', params)
  return new Promise(resolve => {
    setTimeout(() => {
      resolve({
        data: data,
        total: data.length,
      })
    }, 1000)
  })
}
